/*
 * FileDownload.java
 *
 * Created on 06 February 2007, 18:05
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package libjdc.dc.client.conn;

import hubsniffer.conn.DCUserConnection;
import libjdc.dc.client.User;

/**
 *
 * @author root
 */
public class DCFileDownload extends Thread{
    
    private User myself;
    private User other;
    private String remoteFile;
    private String localPath;
    private DCUserConnection connection;
    
    /** Creates a new instance of FileDownload */
    public DCFileDownload(User myself,User other,String remoteFile,String localPath) {
        setConnection(new DCUserConnection(myself, other));
        this.myself = myself;
        this.other = other;
        this.remoteFile = remoteFile;
        this.localPath = localPath;
    }
    
    private DCFileDownload(DCUserConnection connection){
        super(connection);
    }

    public User getMyself() {
        return myself;
    }

    public void setMyself(User myself) {
        this.myself = myself;
    }

    public User getOther() {
        return other;
    }

    public void setOther(User other) {
        this.other = other;
    }

    public String getRemoteFile() {
        return remoteFile;
    }

    public void setRemoteFile(String remoteFile) {
        this.remoteFile = remoteFile;
    }

    public String getLocalPath() {
        return localPath;
    }

    public void setLocalPath(String localPath) {
        this.localPath = localPath;
    }

    public DCUserConnection getConnection() {
        return connection;
    }

    public void setConnection(DCUserConnection connection) {
        this.connection = connection;
    }
    
}
